package com.simp.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author pan.shun
 * @since 2022/3/16 20:06
 */
@ApiModel
@Data
@TableName("SYS_LOG")
public class SysLogEntity extends CommonEntity {

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "IP地址")
    private String ipAddress;

    @ApiModelProperty(value = "耗时")
    private Float elapsedTime;

    @ApiModelProperty(value = "操作事件")
    private Integer actionEvent;

    @ApiModelProperty(value = "事件内容")
    private String eventContent;

    @ApiModelProperty(value = "浏览器名称")
    private String browserName;

    @ApiModelProperty(value = "请求URL")
    private String requestUri;

    @ApiModelProperty(value = "异常信息")
    private String exception;

    @ApiModelProperty(value = "设备名称")
    private String deviceName;

    @ApiModelProperty(value = "用户代理")
    private String userAgent;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户头像")
    private String userHead;
}
